@Repository public interface ProtesiRepository extends org.springframework.data.jpa.repository.JpaRepository<Protesi,String>
| Modifier and Type | Method and Description |
|---|---|
List<Protesi> |
findAllActiveByIdNota(String idNota)
Recupera tutti i Protesi attivi associati a un determinato ID di nota taccuino.
|
Optional<Protesi> |
findByIdAndAttivo(String id,
Boolean attivo)
Recupera l'oggetto di tipo Protesi attivo associati a un determinato ID.
|
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushfindAllOptional<Protesi> findByIdAndAttivo(String id, Boolean attivo)
id - ID dell'oggetto da trovare.attivo - Boolean che specifica lo stato attivo dell'oggetto.@Query(value="from Protesi d where d.nota.id = :idNota and d.attivo = true") List<Protesi> findAllActiveByIdNota(@Param(value="idNota") String idNota)
idNota - ID del taccuino associato ai documenti.Copyright © 2024. All rights reserved.